package com.kaifa.org.tp02.example02;

import com.kaifa.org.tp02.example01.User1;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test01 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

        User2 user2=applicationContext.getBean("user2",User2.class);
        
        System.out.println(user2);

        User2 user22=applicationContext.getBean("user22",User2.class);
//        System.out.println(user22);
    }
}
